﻿using System;
using fastCSharp;

namespace diantou.web
{
    /// <summary>
    /// 邀请回答问题
    /// </summary>
    abstract class invert<viewType> : currentUserView<viewType>
        where viewType : invert<viewType>
    {
        /// <summary>
        /// 
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        protected diantou.dataAccess.questionInvite[] invites;
    }
    /// <summary>
    /// 我邀请别人回答的问题
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class invite : invert<invite>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        private bool loadView(int page)
        {
            array.page arrayPage = new array.page(pageInfo.Count = currentUser.InviteUserAnswerCount, pageInfo.Size = fastCSharp.config.pub.Default.PageSize, pageInfo.Page = page);
            invites = diantou.dataAccess.tcpCall.questionInvite.getUser(currentUser.Id, arrayPage.SkipCount, arrayPage.CurrentPageSize);
            return true;
        }
    }
}
